package com.alibaba.springbootrbac.model.param.role;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ZhouYaDong
 * @date 2025/8/23
 * @description 角色的权限列表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RolePermissionParam {

    @NotBlank(message = "角色ID不能为空")
    private String roleId;

    @NotEmpty(message = "权限ID列表不能为空")
    private List<String> permissionIds;

}
